//导出首页所有的数据
import axios from '../index'

//用户注册总数
function getUserNum() {
    return axios.get('/findAllUser');
}
//投资总额查询
function getInvestment() {
    return axios.get('/findInvestment');
}
//借款总额查询
function getLend() {
    return axios.get('/findLend');
}
//用户累计收益查询
function getGoods() {
    return axios.get('/findGet');
}
//进度查询
function getProgress() {
    return axios.get('/findProgress')
}

//使用axios.all()方法导出所有数据
function homeAllData() {
    return axios.all([getUserNum(), getInvestment(), getLend(), getGoods(), getProgress()])
}

export default homeAllData

